﻿
@model DAO.Report

@{
    ViewBag.Title = "Увше";
}

<h2>Увше</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend></legend>
        @if (ViewData["errors"] != null)
        {
            <div class="alert alert-error">
                <p>@ViewData["errors"]</p>
            </div>
        }
        @Html.HiddenFor(model => model.id)

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.XmlSettings)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.XmlSettings, new { rows = 15, cols = 15 })
            @Html.ValidationMessageFor(model => model.XmlSettings)
        </div>
        @Html.HiddenFor(model => model.DateCreate)
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
